#define _CRT_SECURE_NO_WARNINGS 1

#include <list>
#include "list.hpp"

namespace MyList
{
	void test_list1()
	{
		list<int> lt;
		lt.push_back(1);
		lt.push_back(2);
		lt.push_back(3);
		lt.push_back(4);

		list<int>::iterator it = lt.begin();
		while (it != lt.end())
		{
			cout << *it << endl;
			++it;
		}
		cout << endl;

		for (auto e : lt)
		{
			cout << e << " ";
		}
		cout << endl;
	}
}

int main()
{
	char* p = nullptr;
	char* pc = p;
	MyList::test_list1();
}